﻿using Castle.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Common.Http
{
    /// <summary>
    /// 植入命令的过程。
    /// </summary>
    [AttributeUsage(AttributeTargets.Method)]
    public class CommandInvocationAttribute : Attribute
    {
        /// <summary>
        /// 进入方法时执行。
        /// </summary>
        /// <param name="arg"></param>
        public virtual void OnEntry(MethodExecutionArgs arg)
        {

        }

        /// <summary>
        /// 准备退出方法时执行。
        /// </summary>
        /// <param name="arg"></param>
        public virtual void OnExit(MethodExecutionArgs arg)
        {
        }
    }
}
